<template>
    <h3>方法事件处理器</h3>


    <button @:click="addCount">add</button>
    <p>count is: {{ count }}</p>
<!-- 传参 -->
    <button @:click="send('hello')">send hello</button>


</template>

<script>

export default {
    data() {
        return {
            count: 0
        }
    },
    methods: {
        addCount(e) {
        
            this.count++

            e.target.innerHTML ="add "+ this.count


        },
        send(msg) {
            console.log(msg)
            
        }
    }
}
</script>